﻿using DesignPatterns.Factory.Interface;
using DesignPatterns.Factory.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatterns.Factory.ImpService
{
    public class BaseShopFactory : IFruitShopFactory
    {
        public Fruit CreateApple()
        {
            IFruitFactory factory = new AppleFactory() ;
            return factory.CreateFruit();
        }

        public Fruit CreateOrange()
        {
           IFruitFactory factory =  new OrangeFactory();
           return  factory.CreateFruit();
        }
    }
}
